<?include($this->rootDir.'/views/signature/public.phtml');?>
<?
$gender = index_util_prop::getUserGender($this->friend_uid);
if($gender=='男'){
	$sex ='他';

}elseif($gender=='女'){
	$sex ='她';

}else{
	$sex = 'TA';

}
?>
<div class="content-l">
		     <div class="mood-all-content">
			      <div class="user-top">
					<div class="leftfix">
						<i:avatar xmlns:i="178"  uid="<?=$this->friend_uid?>" size="50"  username="<?=$this->friend_username?>" title="<?=$this->friend_username?>" addlink="true" link="" />
					</div>
					<div class="user-link">
						<h1><a href="#"><?= $this->friend_username; ?></a> 的心情</h1>
						<p><a href="/~?uid=<?= $this->friend_uid;?>"><?= $sex?>的主页</a>
					</div>
				</div>
												
		<? if($this->data): ?>
		<?foreach ($this->data as $state): ?>				
				 <div class="mood-content">
					  <div class="mood-content-title">					   	
						   <span class="c-747474">发表于：</span><?=Util::formatTime($state['create_time'])?>						  
					  </div><!--mood-title-->
					  <div class="mood-content-mr">
						   		<?=preg_replace($_SERVER['config']['smile2']['searcharray'],$_SERVER['config']['smile2']['replacearray'],$state['feel']).$state['state'] ?>
					  </div><!--mood-content-mr-->
					  <div class="mood-content-under">						 
						   <a href="javascript: comments.app_comment('comment','signature','state_show','<?=$state['id']?>','<?=$state['uid']?>','<?=comment_util_comment::makeTheCode('comment','signature','state_show',$state['id'])?>')">
					评论
					(<span class="c-9e2224"><?= comment_util_comment::getCommentCount('comment','signature','state_show',$state['id']);?></span>)</a></div>
					  <!--mood-content-under-->	
					  <div id='comment_signature_state_show_<?= $state['id']?>' class="comment" ></div>		  
				 </div><!--mood-content-->
	<? endforeach;?>
	<? endif;?>

			 </div><!--mood-all-content-->
			 <?if($this->data):?>
				 <div class="mood-pagination">
							<?= $this->pageinfo; ?>
				 </div><!--mood-pagination-->
			 <?endif?>
		</div><!--content-l -->
		<div class="content-r">

			

		</div><!--content-r -->



<? if($_GET['stateNum']):?>
<script type="text/javascript">
comments.app_comment('comment','signature','state_show',
<?= $_GET['stateNum']?>,'<?= $state['uid']?>',
'<?=comment_util_comment::makeTheCode('comment','signature','state_show',$_GET['stateNum'])?>');
</script>
<?endif?>